package com.jams.goodox.entity;

import com.google.gson.annotations.SerializedName;
import com.jams.goodox.net.BaseEntity;
import com.jams.goodox.utils.StringUtils;

/**
 * Created by jams_zhen on 2017/5/19.
 */

public class CompanyBaseInfoBean extends BaseEntity{


    private DataBean data;

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean implements Mapper<CompanyBaseInfo>{
        private String adminId;
        private String businessLicense;
        private String businessLicensePic;
        private String businessScope;
        private String communityId;
        private String contact;
        private String contactPhone;
        private String enterpriseName;
        private String enterpriseType;
        private String fax;
        private String id;
        private long intime;
        private String introduce;
        private String legalPerson;
        private String legalPersonNum;
        private String legalPersonPhone;
        private long lendEndTime;
        private long lendStartTime;
        private String maillistStatus;
        @SerializedName("status")
        private String statusX;
        private String telephone;
        private String enterpriseAddress;
        private String headPicName;

        public String getHead() {
            return headPicName;
        }

        public void setHead(String head) {
            this.headPicName = head;
        }

        public String getEnterpriseAddress() {
            return enterpriseAddress;
        }

        public void setEnterpriseAddress(String enterpriseAddress) {
            this.enterpriseAddress = enterpriseAddress;
        }

        public String getAdminId() {
            return adminId;
        }

        public void setAdminId(String adminId) {
            this.adminId = adminId;
        }

        public String getBusinessLicense() {
            return businessLicense;
        }

        public void setBusinessLicense(String businessLicense) {
            this.businessLicense = businessLicense;
        }

        public String getBusinessLicensePic() {
            return businessLicensePic;
        }

        public void setBusinessLicensePic(String businessLicensePic) {
            this.businessLicensePic = businessLicensePic;
        }

        public String getBusinessScope() {
            return businessScope;
        }

        public void setBusinessScope(String businessScope) {
            this.businessScope = businessScope;
        }

        public String getCommunityId() {
            return communityId;
        }

        public void setCommunityId(String communityId) {
            this.communityId = communityId;
        }

        public String getContact() {
            return contact;
        }

        public void setContact(String contact) {
            this.contact = contact;
        }

        public String getContactPhone() {
            return contactPhone;
        }

        public void setContactPhone(String contactPhone) {
            this.contactPhone = contactPhone;
        }

        public String getEnterpriseName() {
            return enterpriseName;
        }

        public void setEnterpriseName(String enterpriseName) {
            this.enterpriseName = enterpriseName;
        }

        public String getEnterpriseType() {
            return enterpriseType;
        }

        public void setEnterpriseType(String enterpriseType) {
            this.enterpriseType = enterpriseType;
        }

        public String getFax() {
            return fax;
        }

        public void setFax(String fax) {
            this.fax = fax;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public long getIntime() {
            return intime;
        }

        public void setIntime(long intime) {
            this.intime = intime;
        }

        public String getIntroduce() {
            return introduce;
        }

        public void setIntroduce(String introduce) {
            this.introduce = introduce;
        }

        public String getLegalPerson() {
            return legalPerson;
        }

        public void setLegalPerson(String legalPerson) {
            this.legalPerson = legalPerson;
        }

        public String getLegalPersonNum() {
            return legalPersonNum;
        }

        public void setLegalPersonNum(String legalPersonNum) {
            this.legalPersonNum = legalPersonNum;
        }

        public String getLegalPersonPhone() {
            return legalPersonPhone;
        }

        public void setLegalPersonPhone(String legalPersonPhone) {
            this.legalPersonPhone = legalPersonPhone;
        }

        public long getLendEndTime() {
            return lendEndTime;
        }

        public void setLendEndTime(long lendEndTime) {
            this.lendEndTime = lendEndTime;
        }

        public long getLendStartTime() {
            return lendStartTime;
        }

        public void setLendStartTime(long lendStartTime) {
            this.lendStartTime = lendStartTime;
        }

        public String getMaillistStatus() {
            return maillistStatus;
        }

        public void setMaillistStatus(String maillistStatus) {
            this.maillistStatus = maillistStatus;
        }

        public String getStatusX() {
            return statusX;
        }

        public void setStatusX(String statusX) {
            this.statusX = statusX;
        }

        public String getTelephone() {
            return telephone;
        }

        public void setTelephone(String telephone) {
            this.telephone = telephone;
        }

        @Override
        public CompanyBaseInfo transform() {//解析成需要的企业基本信息实体
            CompanyBaseInfo companyBaseInfo=new CompanyBaseInfo();
            companyBaseInfo.setId(StringUtils.newString(id));
            companyBaseInfo.setCompanyAddress(StringUtils.newString(enterpriseAddress));
            companyBaseInfo.setCompanyIntro(StringUtils.newString(introduce));
            companyBaseInfo.setCompanyLinkPhone(StringUtils.newString(telephone));
            companyBaseInfo.setCompanyPhone(StringUtils.newString(legalPersonPhone));
            companyBaseInfo.setCompanyName(StringUtils.newString(enterpriseName));
            companyBaseInfo.setCompanyHead(StringUtils.newString(headPicName));
            return companyBaseInfo;
        }
    }
}
